<?php
header("Content-type:text/html;charset=utf-8");
$aaa=file_get_contents("http://".$_SERVER['HTTP_HOST']."/api/qqsc.php?url=https://sharechain.qq.com/b84df6e53bca2da434b32bf430a9d70a");
$bbb = json_decode($aaa, true);
if($bbb["data"]["summary"]["brief"]=="1.2.V")
{
echo "你当前使用的是新版本哦！";
}else{
echo "有新版本更新啦，请站长去下载更新包！";
//$ccc = file_get_contents("http://".$_SERVER['HTTP_HOST']."/template/2021.php");
//file_put_contents('update.zip', $ccc);//下载到本地，重命名为update.zip
//$zip = new ZipArchive;
//if($zip->open('./update.zip') && $zip->extractTo('./')){//解压update.zip到根目录
//unlink('update.zip');//删除update.zip文件
}